package Demo2;

//public修饰的
public class Stu {

    //成员
    public String name;
    public int age;
    public Double score;

    //构造方法
    public Stu(String name, int age,Double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    @Override//重写toString方法
    public String toString() {
        return "Stu{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score='" + score + '\'' +
                '}';
    }
}
